import requests
# from scrapy.http.response.html import HtmlResponse

url ="http://localhost:6800/schedule.json"
data={
    'project':'default',
    'spider':'search_assay',
    'pageSize':5,
    'pageIndex':2
}
# rep=requests.post(url,data=data)


# 


# 发送 POST 请求
try:
    response = requests.post(url, data=data)

    # 检查响应状态码
    response.raise_for_status()
    

    # 打印响应内容
    # print(response.)
    print('Response:', response.json())
except requests.exceptions.RequestException as e:
    print('Request failed:', e)